SubmitPrintJob

This function is used to submit a print job through a network printer the RFgen server is connected.

Group: Printer Extensions


Syntax: bValue = Printer.SubmitPrintJob(Template, Printer, Tcp Port, pParams)

bValue                  (Boolean) Optional – Returns True or False depending on the success of the submission.

Template             (String) The name of the template that contains the formatting of the print job. (Reserved for future use.)

Printer                  (String) is the network name/IP of the device/peripheral that will be printing the job.

TcpPort               (Long) is the TCP port number of the printer.

Params               (Variant) The first parameter is the printer-specific code to print a barcode label. The subsequent parameters are reserved for future use.

Example:

Dim sOutput As String

sOutput = "<STX><ESC>P<ETX>"

sOutput &= "<STX>E2;F2<ETX>"

sOutput &= "<STX>H0;o200,10;c2;f3;k5;d0,20<ETX>"  Item

sOutput &= "<STX>H1;o200,400;c2;f3;k5;d0,20<ETX>"  'Rev

sOutput &= "<STX>B2;o170,10;c0;h50;w2;f3;k6;d0,28;<ETX>" 'Item Barcode

sOutput &= "<STX>I2;o110,200;c2;f3;k5;d0,28<ETX>"   'Item Interpretive

sOutput &= "<STX>R<ETX>"

sOutput &= "<STX><ESC>E2<CAN><ETX>"

sOutput &= "<STX>" & "Item:"  & "<CR><ETX>"

sOutput &= "<STX>" & "Rev: A" & "<CR><ETX>"

sOutput &= "<STX>" & "73-0000032" & "<CR><ETX>"

sOutput = sOutput & "<STX><RS>" & "2" & "<ETB><ETX>"

 

Printer.SubmitPrintJob("", "158.100.100.100", 9100, sOutput)

 

Supported Versions:       RFgen 5.1 and newer.